package what.the.fun.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import what.the.fun.dao.QuestionDAO;
import what.the.fun.domain.Question;

public class QuestionServiceImpl implements QuestionService{

	@Autowired
	QuestionDAO questionDAO;
	
	@Override
	public List<Question> getDataList() {
		return questionDAO.getDataList();
	}

	@Override
	public void insertData(Question data) {
		questionDAO.insertData(data);
	}

	@Override
	public void updateData(Question data) {
		questionDAO.updateData(data);
	}

	@Override
	public void deleteData(String id) {
		questionDAO.deleteData(id);
	}

	@Override
	public Question getData(String id) {
		return questionDAO.getData(id);
	}

	@Override
	public List<Question> getQuestionListBySurveyId(String surveyId) {
		return questionDAO.getQuestionListBySurveyId(surveyId);
	}

	@Override
	public Question getLast() {
		return questionDAO.getLast();
	}

}
